﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Rss.Domain.ValueObject
{
    /// <summary>
    /// 博客园RSS
    /// </summary>
    [Serializable()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [XmlType(AnonymousType = true)]
    [XmlRoot(Namespace = "http://www.w3.org/2005/Atom", IsNullable = false, ElementName = "feed")]
    public class Feed
    {
        /// <summary>
        /// 
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string subtitle { get; set; }

        /// <summary>
        /// 作者信息
        /// </summary>
        [XmlElement("author")]
        public author authorInfo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [XmlElement("content")]
        public string content { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [XmlElement("entry")]
        public List<entry> entrys { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public class entry
        {
            /// <summary>
            /// 
            /// </summary>
            public string id { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string title { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string summary { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string published { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string updated { get; set; }
        }


        /// <summary>
        /// 
        /// </summary>
        public class author
        {
            /// <summary>
            /// 
            /// </summary>
            public string name { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string uri { get; set; }
        }
    }
}
